﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HierarchicalClustering
{
    public class DistanceMatrix   // matrix containing the distances between every cluster
    {
        private int _size;   // matrix's size
        private double[,]  _matrix;   // matrix

        public double this[int i, int j]
        {
            set   // set the value of the i'th row and j'th column
            {
                _matrix[i, j] = value;
            }
            get   // get the value of the i'th row and the j'th column
            {
                return _matrix[i, j];
            }
        }

        public DistanceMatrix ( int size )
        {
            _size = size;   // create the array
            _matrix = new double[size, size];
        }
    }
}
